﻿using PMS.Data.Entities.Customers;
using PMS.Web.Framework.Models;

namespace PMS.Web.Models.Messages
{
    /// <summary>
    /// Search PagedList Emails by customer Model
    /// </summary>
    public class CustomerEmailSearchModel : BaseSearchModel
    {
        /// <summary>
        /// For EntityModelBinder
        /// </summary>
        public CustomerEmailSearchModel()
        {
        }
        public CustomerEmailSearchModel(Customer customer)
        {
            CustomerId = customer?.Id ?? 0;
        }
        public int CustomerId { get; set; }
    }
}
